<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>首页</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/jquery-1.4.2.min.js"></script>

<link	href="<%=path%>/uiwidget/vinSwfUpload-1.2/css/vinSwfUpload-1.2-skin.css"	rel="stylesheet" type="text/css" />
<link	href="<%=path%>/uiwidget/vinSwfUpload-1.2/css/vinSwfUpload-1.2.css"	rel="stylesheet" type="text/css" />
<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/core/plugins/SWFUpload.cookies.js"></script>
<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/core/plugins/SWFUpload.queue.js"></script>
<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/core/plugins/SWFUpload.speed.js"></script>
<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/core/plugins/SWFUpload.swfobject.js"></script>
<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/core/SWFUpload-2.2.js"></script>
<script type="text/javascript"	src="<%=path%>/uiwidget/vinSwfUpload-1.2/vinSWFUpload-1.2.js"></script>
<script type="text/javascript">
	$(function() {
		// 文档就绪
		var path = "<%=path%>/uiwidget/vinSwfUpload-1.2/";
		$("#vinEdit1").vinSWFUpload( {
			uploadURL:'<%=path%>/swf/upload',
			width : 500,
			heigth : 300,
			sizeUnit:"M",
			autoRemove:true,
			flashURL : path+"core/SWFUpload.swf",
			addImgURl:path+"images/add.gif",
			uploadImgURl:path+"/images/upload.png",
			stopImgURl:path+"images/stop.png",
			deleteImgURl:path+"images/trash.gif",
			tipImgURl:path+"images/tip.gif"
		});

		$("#vinEdit3").vinSWFUpload( {
			uploadURL:'<%=path%>/swf/upload',
			width : 500,
			heigth : 300,
			sizeUnit:"M",
			skin:"green",
			autoRemoveStoped:false,
			flashURL : path+"core/SWFUpload.swf",
			addImgURl:path+"images/add.gif",
			uploadImgURl:path+"/images/upload.png",
			stopImgURl:path+"images/stop.png",
			deleteImgURl:path+"images/trash.gif",
			tipImgURl:path+"images/tip.gif"
		});

		
		var upload = $("#vinEdit").vinSWFUpload( {
			uploadURL:'<%=path%>/swf/upload',
			width : 500,
			heigth : 300,
			sizeUnit:"M",
			skin:"green",
			autoRemoveStoped:true,
			hideUploadBt:false,
			hideStopBt:false,
			hideDeleteSelectBt:false,
			hideDeleteAllBt:false,
			flashURL : path+"core/SWFUpload.swf",
			addImgURl:path+"images/add.gif",
			uploadImgURl:path+"/images/upload.png",
			stopImgURl:path+"images/stop.png",
			deleteImgURl:path+"images/trash.gif",
			tipImgURl:path+"images/tip.gif"
		});
		

		$("#UploadBt").click(function () {
			upload.startUploadFunc();
		}); 

		$("#StopBt").click(function () {
			upload.stopUploadFunc();
		}); 

		$("#deleteSelectBt").click(function () {
			upload.deleteSelectFunc();
		}); 

		$("#deleteAllBt").click(function () {
			upload.deleteAllFunc();
		}); 
		
	});
</script>
</head>


<body>
<br>
<div id="vinEdit1"></div>
<hr>
<div style="text-align: left;">
	<div style="width: 500px;float: left;height: 300px ;border: 1px solid silver;" id="debug_msg">调试兼容的空白div</div>
	<div id="vinEdit" style="width: 500px;height: 300px;float: left;"></div>
	<div style="width: 150px;float: left;height: 300px;border: 1px solid silver;">
		<input type="button" value="UploadBt" id="UploadBt"><br>
		<input type="button" value="StopBt" id="StopBt"><br>
		<input type="button" value="deleteSelectBt" id="deleteSelectBt"><br>
		<input type="button" value="deleteAllBt" id="deleteAllBt">
	</div>
</div>
<hr>
<div id="vinEdit3" style="clear: both;"></div>
</body>
</html>